import http from "@/utils/http";
import { bodyToQuery } from "@/utils/helper";
import type { RegisterFormType } from "./params";
import type { RegisterResponseData } from "./res";
import { headerCommon, headerMaster } from "../header";

// 标准写法
enum API {
  POST_REGISTER_API = "/1.1/users",
}

// example
export const postRegisterApi = (data: RegisterFormType) =>
  http.post<any, RegisterResponseData>(API.POST_REGISTER_API, data,{headers: headerCommon});
